package test.module.info.rest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import test.module.info.entity.Info;
import test.module.info.service.InfoService;
import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(value = "/info")
public class InfoRestController {
    @Resource
    private InfoService infoService;
    @RequestMapping("/search/all")
    public List<Info> searchAll(){
        return infoService.list();
    }
}
